import request from '@/utils/request'

// Get parking spot list
export function getParkSpotList(query) {
  return request({
    url: '/system/parkSpot/parkSpotList',
    method: 'get',
    params: query
  })
}

// Add new parking spot
export function addParkSpot(data) {
  return request({
    url: '/system/parkSpot/addParkSpot',
    method: 'post',
    data: data
  })
}

// Update parking spot
export function updateParkSpot(data) {
  return request({
    url: '/system/parkSpot/updateParkSpot',
    method: 'post',
    data: data
  })
}

// Delete parking spot
export function deleteParkSpot(data) {
  return request({
    url: '/system/parkSpot/deleteParkSpot',
    method: 'post',
    params: data
  })
}
